<?php

$root_dir = dirname(__FILE__);
define('ROOT_DIR', $root_dir);
define('BOOTCAMP_PATH', dirname($root_dir));
define('APP_DIR', BOOTCAMP_PATH . '/application');
define('APP_TITLE', 'TechnoCoders Bootcamp');

define('ADMIN_ID' , 1);

include_once BOOTCAMP_PATH . '/library/TechnoDK/technodk.functions.php';

$bootcamp_folder = 'bootcamp';

$app_env = null;
if($_SERVER['HTTP_HOST'] == 'bootcamp.technocoders.com'){
	define('ZEND_LIB', '/home4/technoc9/lib');
	define('HTTP_HOST', 'http://' . $_SERVER['HTTP_HOST']);
	$app_env = 'production';
} else {
	define('ZEND_LIB', dirname(BOOTCAMP_PATH) . '/frameworks/Zend/library');
	define('HTTP_HOST', 'http://' . $_SERVER['HTTP_HOST'] . '/' . $bootcamp_folder . '/public');
	$app_env = 'development';
}

set_include_path(ZEND_LIB . PATH_SEPARATOR . get_include_path());

require_once 'Zend/Application.php';

$zend_app = new Zend_Application($app_env, APP_DIR . '/config/config.ini');

$zend_app->bootstrap()->run();

?>